package com.four.collage.service.impl;

import com.four.collage.entity.Attribute;
import com.four.collage.dao.AttributeMapper;
import com.four.collage.service.IAttributeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gs
 * @since 2021-12-18
 */
@Service
public class AttributeServiceImpl extends ServiceImpl<AttributeMapper, Attribute> implements IAttributeService {

    @Autowired
    private AttributeMapper attributeMapper;

    /**
     * 根据拼团商品id查询属性
     * @param grId
     * @return
     */
    @Override
    public Attribute getAttribute(Integer grId) {
        return attributeMapper.getAttribute(grId);
    }
}
